<!DOCTYPE html>
<html>

	<head>
		<script type="text/javascript" src="../js/jquery.js"></script>
		<script type="text/javascript" src="../citypicker/js/city-picker.data.js"></script>
		<script type="text/javascript" src="../citypicker/js/city-picker.js"></script>
		<link rel="stylesheet" href="../citypicker/css/city-picker.css" />
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			$(function() {
				$("#area").citypicker();
				$("#reset").click(function() {
					$("#area").citypicker('reset');
				});
				$("#changan").click(function() {
					$("#area").citypicker('reset');
					$("#area").citypicker('destroy');
					$("#area").citypicker({
						province: '陕西省',
						city: '西安市',
						district: '长安区'

					});
				});
			})
		</script>
	</head>

	<body>
		<!--	第一种用法  在HTML中直接使用
			<div  style="position: relative;">
				<input type="text" name="area" data-toggle = "city-picker" size="80" />
		</div>-->
		<div style="position: relative;">
			<input type="text" id="area" size="80" />
			<input type="button" value="重置" id="reset" /><br />
			<input type="button" value="赋值" id="changan" />
		</div>

	</body>

</html>